package top.dotgo.model.shop;

import java.util.Date;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import top.dotgo.model.IBaseEntity;

import javax.persistence.*;

/**
 * 商户 额外公司信息(ShopCompany)实体类
 *
 * @author jornl
 * @date 2020-05-21 00:03:49
 */
@Entity
@Data
@Accessors(chain = true)
@Table(name = "shop_company")
public class ShopCompanyEntity implements IBaseEntity, Serializable {
       /**
     * 客户公司Id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO, generator = "custom-id")
    @GenericGenerator(name = "custom-id", strategy = "top.dotgo.model.kit.CustomIDGenerator")
     @Column(name = "id")
     private Long id;
    
    /**
     * 总公司的id
     */
     @Column(name = "top_id")
     private Long topId;
    
    /**
     * 客户公司名称
     */
     @Column(name = "name")
     private String name;
    
    /**
     * 客户公司简称
     */
     @Column(name = "simple_name")
     private String simpleName;
    
    /**
     * 客户公司编码
     */
     @Column(name = "code")
     private String code;
    
    /**
     * 管理员的账号id
     */
     @Column(name = "admin_acc_id")
     private Long adminAccId;
    
    /**
     * logo图片
     */
     @Column(name = "logo_pic")
     private String logoPic;
    
    /**
     * 简介文字
     */
     @Column(name = "intro")
     private String intro;
    
    /**
     * 商户地址
     */
     @Column(name = "address")
     private String address;
    
    /**
     * 经度
     */
     @Column(name = "lon")
     private Double lon;
    
    /**
     * 纬度
     */
     @Column(name = "lat")
     private Double lat;
    
    /**
     * 联系人手机号
     */
     @Column(name = "contact_mobile")
     private String contactMobile;
    
    /**
     * 座机电话
     */
     @Column(name = "contact_telephone")
     private String contactTelephone;
    
    /**
     * 营业执照 图片，多张逗号分隔
     */
     @Column(name = "license_pic")
     private String licensePic;
    
    /**
     * 营业执照号
     */
     @Column(name = "license_code")
     private String licenseCode;
    
    /**
     * 开户行
     */
     @Column(name = "bank_name")
     private String bankName;
    
    /**
     * 开户行账号
     */
     @Column(name = "bank_code")
     private String bankCode;
    
    /**
     * 微信号
     */
     @Column(name = "wx_code")
     private String wxCode;
    
    /**
     * 微信 收款码
     */
     @Column(name = "wx_code_pic")
     private String wxCodePic;
    
    /**
     * 支付宝号
     */
     @Column(name = "alipay_code")
     private String alipayCode;
    
    /**
     * 收款人
     */
     @Column(name = "payee_user")
     private String payeeUser;
    
    /**
     * 提现手续费率，百分数
     */
     @Column(name = "cash_rate")
     private Double cashRate;
    
    /**
     * 创建时间
     */
     @Column(name = "create_time")
     private Date createTime;
    
    /**
     * 创建人的账号id
     */
     @Column(name = "create_by")
     private Long createBy;
    
    /**
     * 修改时间
     */
     @Column(name = "edit_time")
     private Date editTime;
    
    /**
     * 修改人的账号id
     */
     @Column(name = "edit_by")
     private Long editBy;
    
    /**
     * 删除时间
     */
     @Column(name = "del_time")
     private Date delTime;
    
    /**
     * 删除人的账号id
     */
     @Column(name = "del_by")
     private Long delBy;
    
    /**
     * 0禁用，1启用
     */
     @Column(name = "status")
     private Integer status;
    


}
